//
//  SpecialTopicCell.swift
//  TravelNotes
//
//  Created by 千锋 on 16/8/17.
//  Copyright © 2016年 胡光健. All rights reserved.
//

import UIKit

class SpecialTopicCell: UITableViewCell {

    @IBOutlet weak var mainImageView: UIImageView!
    @IBOutlet weak var nameLabel: UILabel!
    @IBOutlet weak var titleLabel: UILabel!
    
    var model: SpecialTopicModel! {
        
        didSet {
            
            mainImageView.sd_setImageWithURL(NSURL(string: model.image_url!), placeholderImage: UIImage(named: ""))
            nameLabel.text = model.name
            titleLabel.text = model.title
        }
    }
}
